package com.ruoyi.quanzi.domain;

import java.util.Date;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 话题成员对象 sun_topic_member
 * 
 * @author ruoyi
 */
public class SunTopicMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成员ID */
    private Long id;

    /** 话题ID */
    private Long topicId;

    /** 用户ID */
    private Long uid;

    /** 用户名称 */
    private String userName;

    /** 用户头像 */
    private String avatar;

    /** 角色（0普通成员 1管理员 2创建者） */
    private Integer role;

    /** 状态（0正常 1禁言 2封禁） */
    private Integer status;

    /** 加入时间 */
    private Date joinTime;

    /** 最后活跃时间 */
    private Date lastActiveTime;

    /** 发帖数量 */
    private Integer postCount;

    /** 积分 */
    private Integer integral;

    /** 禁言结束时间 */
    private Date muteEndTime;

    /** 加入类型（0主动加入 1邀请加入） */
    private Integer joinType;

    /** 邀请人用户ID */
    private Long inviterUid;

    public Long getId()
    {
        return id;
    }
    
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getTopicId()
    {
        return topicId;
    }

    public void setTopicId(Long topicId)
    {
        this.topicId = topicId;
    }

    public Long getUid()
    {
        return uid;
    }

    public void setUid(Long uid)
    {
        this.uid = uid;
    }

    // 兼容性方法，保持与原有代码的兼容
    public Long getUserId()
    {
        return uid;
    }

    public void setUserId(Long userId)
    {
        this.uid = userId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getAvatar()
    {
        return avatar;
    }

    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public Integer getRole()
    {
        return role;
    }

    public void setRole(Integer role)
    {
        this.role = role;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Date getJoinTime()
    {
        return joinTime;
    }

    public void setJoinTime(Date joinTime)
    {
        this.joinTime = joinTime;
    }

    public Date getLastActiveTime()
    {
        return lastActiveTime;
    }

    public void setLastActiveTime(Date lastActiveTime)
    {
        this.lastActiveTime = lastActiveTime;
    }

    public Integer getPostCount()
    {
        return postCount;
    }

    public void setPostCount(Integer postCount)
    {
        this.postCount = postCount;
    }

    public Integer getIntegral()
    {
        return integral;
    }

    public void setIntegral(Integer integral)
    {
        this.integral = integral;
    }

    public Date getMuteEndTime()
    {
        return muteEndTime;
    }
    
    public void setMuteEndTime(Date muteEndTime)
    {
        this.muteEndTime = muteEndTime;
    }

    public Integer getJoinType()
    {
        return joinType;
    }

    public void setJoinType(Integer joinType)
    {
        this.joinType = joinType;
    }

    public Long getInviterUid()
    {
        return inviterUid;
    }

    public void setInviterUid(Long inviterUid)
    {
        this.inviterUid = inviterUid;
    }
}
